
<#include "*/general/header.ftl">

<h3>Update User Privileges</h3>
<form name="input" action="manageusers.action" method="post">
<table id = "manageusers" class="supa">
    <tr>
        <th class="nobg"> User name </th>
        <th> Role </th>
    </tr>
<#list users as user>
    <tr>
        <th scope="row" class="spec"> ${user.username}</th>
        <td>
            <select name="values">
                <#if "${user.role}" == "user">
                    <option selected="true" value="user">User</option>
                <#else>
                    <option value="user">User</option>
                </#if>
                <#if "${user.role}" == "manager">
                    <option selected="true" value="manager">Manager</option>
                <#else>
                    <option value="manager">Manager</option>
                </#if>
                <#if "${user.role}" == "admin">
                    <option selected="true" value="admin">Admin</option>
                <#else>
                    <option value="admin">Admin</option>
                </#if>
            </select>
        </td>
    </tr>

</#list>
    <tr>
        <td class="bottom fright" colspan="2"> <input type="submit" value="update"></input></td>
    </tr>
</table>

</form>

<#include "*/general/footer.ftl">